import request from '@/http/request'


// 福分规则列表 /api/scoreRule
export const $getScoreRule = (params:any) => {
    return request.request({
      url: '/api/scoreRule',
      method: 'get',
      params: params
    })
  }

//   福分规则状态管理规则  /api/scoreRule/updateState
export const $scoreRuleState = (params:any) => {
    return request.request({
      url: '/api/scoreRule/updateState',
      method: 'post',
      params: params
    })
  }

// 福分规则管理新增
export const API_SCORE_RULE_SAVE = '/api/scoreRule/save'
// 福分规则管理修改
export const API_SCORE_RULE_UPDATE = '/api/scoreRule/update'
export const $scoreRuleAddorEdit = (url:any,params:any) => {
    return request.request({
      url: url,
      method: 'post',
      params: params
    })
  }

//   福分规则详情 /api/scoreRule/getInfo
export const $getScoreRuleInfo = (params:any) => {
    return request.request({
      url: '/api/scoreRule/getInfo',
      method: 'post',
      params: params
    })
  }

//   福分规则key列表
export const $getScoreRuleKeyList = (params:any) => {
    return request.request({
      url: '/api/scoreRule/getSysConfig',
      method: 'post',
      params: params
    })
  }

  // 小程序公众号列表 不分页  "type":"" 0公众号，1小程序  '/api/agent/lite/getList'

export const $getOfficialList = (params:any) => {
    return request.request({
      url: '/api/agent/app/getList',
      method: 'post',
      params: params
    })
  }